package net.chrisrichardson.cloudtools.maven.plugins;

import net.chrisrichardson.ec2deployer.cluster.ClusterManager;
import net.chrisrichardson.ec2deployer.cluster.SimpleCluster;

/**
 * Goal for taking a snapshot of the database
 * @goal dbsave
 * @author cer
 *
 */
public class DbSaveMojo extends AbstractClusterMojo {

  /**
   * S3 path
   * 
   * @parameter expression="${cloudtools.s3.path}" 
   * @required
   */
  protected String s3Path;

  @Override
  protected void executeWithCluster(ClusterManager manager, SimpleCluster cluster) {
    cluster.dbSave(s3Path);
  }

}
